package com.xunfang.cloud.common.api;

import com.xunfang.cloud.common.api.fackback.PayFeignSentinelApiFallBack;
import com.xunfang.cloud.common.result.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(
        value = "nacos-payment-provider",
        fallback = PayFeignSentinelApiFallBack.class)
public interface PayFeignSentinelApi{
    
    @GetMapping("/pay/nacos/{id}")
    public ResultData getPayByOrderNo(@PathVariable("id") Integer id);
    
}